package com.example.bili.controller;

import com.example.bili.service.SouService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

@RequestMapping("/sou")
@RestController
public class SouController {
    @Resource
    private SouService service;

    @GetMapping("/getSY")
    public Object getSY(@RequestParam(required = false)String wb,
                        @RequestParam(required = false,defaultValue = "0")int typeId){
        return service.getSY(wb,typeId);
    }
    @GetMapping("/getSY2")
    public Object getSY2(@RequestParam(required = false)String wb){
        return service.getSY2(wb);
    }
    @GetMapping("/getSY3")
    public Object getSY3(@RequestParam(required = false)String wb){
        return service.getSY3(wb);
    }
    @GetMapping("/getSY4")
    public Object getSY4(@RequestParam(required = false)String wb){
        return service.getSY4(wb);
    }
    @GetMapping("/getGZ")
    public Object getGZ(){
        return service.getGZ();
    }
    @PostMapping("/addLS")
    public boolean addLS(@RequestParam(required = false)String lsname){
        return service.addLS(lsname);
    }
    @GetMapping("/getLSB")
    public Object getLSB(){return service.getLSB();}
    @GetMapping("/delLS")
    public Object delLS(){return service.delLS();}
}
